//
//  SYYBaseNavVC.m
//  NineteenBook
//
//  Created by 58阅读 on 2019/2/19.
//  Copyright © 2019年 58阅读. All rights reserved.
//

#import "SYYBaseNavVC.h"

@interface SYYBaseNavVC ()<UIGestureRecognizerDelegate>

@end

@implementation SYYBaseNavVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationBarHidden = YES;
    
    //ios13修改默认Present样式
    self.modalPresentationStyle = UIModalPresentationFullScreen;
    
    self.interactivePopGestureRecognizer.delegate = self;

}


- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer
{
    //导航的rootViewController关闭右滑返回功能
    if (self.viewControllers.count <= 1){
        return NO;
    }
    return YES;
}


-(UIStatusBarStyle)preferredStatusBarStyle{
    return UIStatusBarStyleDefault;
}



@end
